 body {
     background: linear-gradient(to bottom right, #6487e1, #052057);
     min-height: 100vh;
     margin: 0;
 }

 .content {
     height: 100%;
     width: 100%;
     display: flex;
     justify-content: center; /* 水平居中 */
     align-items: center;     
     flex-direction: column;
 }
 .title{
     font-size: 50px;
     color: rgb(34, 35, 34);
     margin: 0 0 20px 0;     
 }
 .input {
    width: 300px;
    height: 40px;
    font-size: 16px;
    padding: 5px 10px;
    border: 2px solid #ccc;
    border-radius: 15px;
}
.button {
    width: 55px;
    height: 40px;
    font-size: 15px;
    padding: 5px 10px;
    border: 2px solid #ccc;
    border-radius: 15px;
    background-color: #6487e1;
    color: white;
}
/* 搜索区域样式 */
.search-container {
    display: flex;
    align-items: center;
}

/* 天气结果样式 */
.weather-result {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    margin-top: 10px;
    width: 370px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.city-name {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.temperature {
    font-size: 48px;
    font-weight: 700;
    margin: 10px 0;
}

.weather-desc {
    font-size: 18px;
    margin-bottom: 20px;
}

.details {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.detail-item {
    text-align: center;
}

.update-time {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin-top: 15px;
    text-align: right;
}

/* 加载状态样式 */
.loading {
    color: #fff;
    padding: 10px;
}

/* 错误提示样式 */
.error {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    padding: 10px 20px;
    border-radius: 15px;
    margin-top: 10px;
}

/* 隐藏元素 */
.hidden {
    display: none;
}